package com.imooc.mapping.course3;

import com.imooc.mapping.course3.copier.MetadataCopier;
import com.imooc.module.collect.enums.DataTypeEnum;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author Tim
 * @Description:
 * @Version 1.0
 */
public class MainTest {

    public static void main(String[] args) {
        TDataCenterMetadata metadata = new TDataCenterMetadata();
        metadata.setEnName(6);
        metadata.setRuleId(100);
        metadata.setDataTypeEnum(DataTypeEnum.BYTE.getJavaStrType());
        metadata.setPrice(1000);
        metadata.setPriceMax(new BigDecimal("1234"));
        metadata.setCreateTime(LocalDateTime.of(2025,11,12,11,11,13));
        //yyyyMMdd HH:mm:ss
//        metadata.setMyDate("20250312 15:23:25");
        metadata.setTf(LocalDateTime.of(2025,12,11,11,11,15));

        Metadata mdmodel = MetadataCopier.INSTANCE.metadataCopier(metadata);
        System.out.println(mdmodel);
    }
}
